<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    function Sort(a,b,c){
        if(typeof(a)!="number"||typeof(b)!="number"||typeof(c)!="number"){
            return "包含非数字参数";
        }else{
            var arr=[a,b,c];
            arr=arr.sort(function(a,b){return a-b;});
            return arr[0]+"<"+arr[1]+"<"+arr[2];
        }
    }
    document.write(Sort(10,"h",5));
    document.write("<br/>");
    document.write(Sort(10,25,5));
</script>
</html>